import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '推送日期',
    align: "center",
    dataIndex: 'pushDate',
    customRender:({text}) =>{
      text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
      return text;
    },
  },
  {
    title: '渠道',
    align: "center",
    dataIndex: 'username_dictText'
  },
  {
    title: '推送量',
    align: "center",
    dataIndex: 'pushNum'
  },
  {
    title: '建单量',
    align: "center",
    dataIndex: 'buildNum'
  },
];

// 高级查询数据
export const superQuerySchema = {
  pushDate: {title: '推送日期',order: 0,view: 'date', type: 'string',},
  username: {title: '渠道',order: 1,view: 'sel_search', type: 'string',dictTable: "sys_user", dictCode: 'username', dictText: 'username',},
  pushNum: {title: '推送量',order: 2,view: 'number', type: 'number',},
  buildNum: {title: '建单量',order: 3,view: 'number', type: 'number',},
};
